package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("quote")
public class Quote {
//    @TableId(type = IdType.AUTO)
//    private int id;
//    private int commodityId;
//    private int productOffer;
//    private int categoryId;
//    private int userId;
//    private int isSellStatus;

    @TableId(type = IdType.AUTO)
    private int id;
    private Integer commodityId;
    private Integer productOffer;
    private Integer categoryId;
    private Integer userId;
    private Integer isSellStatus;

    @TableField(exist = false)
    private String userAvatar;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private Integer commodityPrice;
    @TableField(exist = false)
    private String commodityName;
}
